//
//  AliPayTool.h
//  CityGuards
//
//  Created by striby on 16/5/11.
//  Copyright © 2016年 kunyang. All rights reserved.
//

#import <Foundation/Foundation.h>
//该商品类 临时使用
@interface Product : NSObject{
@private
    float     _price;
    NSString *_subject;
    NSString *_body;
    NSString *_orderId;
}

@property (nonatomic, assign) float price;
@property (nonatomic, copy) NSString *subject;
@property (nonatomic, copy) NSString *body;
@property (nonatomic, copy) NSString *orderId;


@end

typedef enum _DCPayStete
{
    DCPayStateInterrupt,
    DCPayStatePayedSuccess,
    DCPayStatePayeProgressing,
    DCPayStatePayeFailed
}DCPayStete;

typedef void(^payCompletion)(DCPayStete payState);

//Alipay  工具类
@interface AliPayTool : NSObject

//根据商品生成订单 产生支付
+(void)AliPayForTheProduct:(Product*)product payCompletion:(payCompletion)completion;


+(NSString*)UUID;
@end
